package com.xxc.domain.strategy.service.armory;


/**
 * @Author: xxc
 * @Description: 策略抽奖调度
 * @Date: 2025/1/21 21:49
 * @Version: 1.0
 */
public interface IStrategyDispatch {


    /**
     * 获取抽奖策略装配的随机结果
     * @param strategyId 策略id
     * @return 抽奖结果
     */
    Integer getRandomAwardId(Long strategyId);

    Integer getRandomAwardId(Long strategyId, String ruleWeightValue);

    /**
     * 根据策略ID和奖品ID，扣减奖品缓存库存
     *
     * @param strategyId 策略ID
     * @param awardId    奖品ID
     * @return 扣减结果
     */
    Boolean subtractionAwardStock(Long strategyId, Integer awardId);
}
